package com.ecode.ecny.dto.sign;

import com.ecode.ecny.base.ReqBody;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @ClassName SignReqDTO
 * @Author mjlft
 * @Date 2021/8/15 11:44
 * @Version 1.0
 * @Description 签约请求报文
 */
@Data
public class SignReqDTO extends ReqBody {
    //钱包Id
    @NotBlank(message = "钱包id不能为空")
    @Length(max = 22, message = "钱包id长度超22")
    private String walletId;

    //钱包名称
    @NotBlank(message = "钱包名称不能为空")
    @Length(max = 128, message = "钱包名称长度超128")
    private String walletName;

    //账号
    @NotBlank(message = "账号名不能为空")
    @Length(max = 34, message = "账号名长度超34")
    private String acctNo;

    //id
    @NotBlank(message = "id不能为空")
    @Length(max = 24, message = "id长度超24")
    private String idNo;

    //id名称
    @NotBlank(message = "id名称不能为空")
    @Length(max = 128, message = "id名称长度超128")
    private String idName;

    //id类型
    @NotBlank(message = "id类型不能为空")
    @Length(max = 3, message = "id类型长度超3")
    private String idType;
}
